{include file="pub_header.htm"}

{include file="pub_search.htm"}

<div class="layout_place">
  <div class="place_current">
    <ul>
      <li><a href="{$lang.s._public.global.weburl}" target="_self">{$lang.s._public.global.website}</a></li>
      {foreach name=channel_path from=$channel_path item=item}
      <li><span>&#187;<span></li>
      <li><a href="{$control_index}?act=channel&channel_id={$item.id}" target="_self">{$item.name|str_entag:'space,br'}</a></li>
      {/foreach}
    </ul>
  </div>
</div>

<div class="layout_content">
  <div class="content_one_left">
    <div class="box_one_content">
      <div class="title">
        <h2>{$content_info.content.subject}</h2>
        <p>
          <strong>作者：</strong>{$content_info.content.author|default:'无'}
          <strong>来源：</strong>{$content_info.content.excerpt|default:'无'}
          <strong>时间：</strong>{$content_info.content.post_time|format_date:'%Y-%m-%d'}
          <strong>点击：</strong>{$content_info.content.click}
        </p>
      </div>
      {if $content_info.content.brief != ""}
      <div class="brief">
        {$content_info.content.brief}
      </div>
      {/if}
      {foreach name=content_class_lease_detail from=$content_info.content_class_lease_detail[$content_info.content.content_id] item=item}
        <div class="content">
          <hr>
        </div>
        <div class="info">
          <ul>
            <li><strong>所在城市：</strong>{$field_array.content_class_lease_detail.city.value_array[$item.city].name}</li>
            <li><strong>房屋分类：</strong>{$field_array.content_class_lease_detail.type.value_array[$item.type].name}</li>
            <li><strong>联系电话：</strong>{$item.tel}</li>
            <li><strong>接听时间：</strong>{$item.tel_time}</li>
            <li><strong>房屋地址：</strong>{$item.address}</li>
            <li><strong>房屋面积：</strong>{$item.acreage}</li>
            <li><strong>房屋租金：</strong>{$item.pay}</li>
          </ul>
        </div>
        <div class="info">
          <h4>详细介绍</h4>
          {$item.detail}
        </div>
        {if $content_info.attach[$item.attach]|@is_array && $content_info.attach[$item.attach]|@count > 0}
        <div class="info">
          <h4>相关附件</h4>
          {foreach name=content_class_lease_attach from=$content_info.attach[$item.attach] item=attach_list}
            <span><a href="{$control_index}?act=attach&attach_id={$attach_list.id}" target="_blank">点击下载：{$attach_list.brief} [{$attach_list.down}]</a></span>
          {/foreach}
        </div>
        {/if}
      {/foreach}
      <div class="footer"></div>
    </div>
  </div>
  <div class="content_one_right">
    {return_channel_list upper_id=$channel_path.0.id if_enable="1" if_show="1" item=menu_sub}
    {if $menu_sub|@is_array && $menu_sub|@count > 0}
    <div class="box_one_sub">
      <div class="title">
        <h2>下属分类</h2>
        <span></span>
      </div>
      <div class="content">
        <ul>
        {foreach name=menu_sub from=$menu_sub item=item}
          {if $item.if_turn == "1"}
            {if $item.if_turn_type == "1"}
            <li {if $item.id == $channel_path.1.id}class="current"{/if}><a href="{$item.if_turn_url}" target="_self">{$item.name}</a></li>
            {elseif $item.if_turn_type == "2"}
            <li {if $item.id == $channel_path.1.id}class="current"{/if}><a href="{$item.if_turn_url}" target="_blank">{$item.name}</a></li>
            {else}
            <li {if $item.id == $channel_path.1.id}class="current"{/if}><a href="{$item.if_turn_url}" target="_blank">{$item.name}</a></li>
            {/if}
          {else}
            <li {if $item.id == $channel_path.1.id}class="current"{/if}><a href="{$control_index}?act=channel&channel_id={$item.id}" target="_self">{$item.name}</a></li>
          {/if}
        {/foreach}
        </ul>
      </div>
      <div class="footer"><span></span></div>
    </div>
    {/if}
    <div class="box_one_rank">
      <div class="title">
        <h2>热门推荐</h2>
        <span></span>
      </div>
      <div class="content">
        <ul>
        {return_content_list channel_id="12,13,16,17,18" prefix="20" limit="8" item=hot}
        {foreach name=hot from=$hot item=item}
          <li><a href="{$control_index}?act=content&scheduler_id={$item.scheduler_id}" title="{$item.subject}" target="_blank">{$item.phrase|str_cut:0:26}</a></li>
        {/foreach}
        </ul>
      </div>
      <div class="middletitle">
        <h2>点击排行</h2>
        <span></span>
      </div>
      <div class="content">
        <ul>
        {return_content_list channel_id="12,13,16,17,18" click="1" limit="8" item=click}
        {foreach name=click from=$click item=item}
          <li><a href="{$control_index}?act=content&scheduler_id={$item.scheduler_id}" title="{$item.subject}" target="_blank">{$item.phrase|str_cut:0:26}</a></li>
        {/foreach}
        </ul>
      </div>
      <div class="footer"><span></span></div>
    </div>
  </div>
</div>

{include file="pub_footer.htm"}
